package com.weng.cloud.service8881.bean.lookup.demo2;

import org.springframework.beans.factory.annotation.Lookup;

/**
 * @Author: weng
 * @Date: 2022/5/14
 * @Description: com.weng.cloud.service8881.bean.demo2
 */

public abstract class CmdMgr {

    public Cmd process(Object state){
        Cmd cmd = createCmd();
        cmd.setState(state);
        return cmd;
    }

    @Lookup
    protected abstract Cmd createCmd();
}
